/**
 * API 管理
 */
import request from "../utils/request";
export default {
  login(params) {
    return request({
      url: "/user/login",
      data: params,
      mock: false,
      method: "POST",
    });
  },
  noticeCount(params) {
    return request({
      url: "/leave/count",
      method: "get",
      data: params,
      mock: true,
    });
  },
  getMenuList() {
    return request({
      url: "/menu/list",
      method: "get",
      data: {},
    });
  },
  getUserList(params) {
    return request({
      url: "/users/list",
      method: "get",
      data: params,
      mock: true,
    });
  },
  userDel(params) {
    return request({
      url: "/users/delete",
      method: "post",
      data: params,
      mock: true,
    });
  },
  best() {
    return request({
      url: "/user/leave/count",
      method: "get",
      data: {},
      mock: false,
    });
  },
};
